var ec_left3 = echarts.init(document.getElementById('l3'),'macarons');
var ec_left3_Option = {
    title: {
        text: '各省治愈情况TOP10',
        textStyle: {
        color: 'white',
    },
        left: 'left'
    },
    tooltip: {
      trigger: 'item',
    },
    legend: {
      type: 'scroll',
      orient: 'vertical',
      right: 10,
      top: 20,
      bottom: 20,
      itemWidth: 10,
      itemHeight: 10,
      textStyle: {
        color: "#ffffff",
        fontSize: "12"
        }
    },
    series: [
      {
        type: 'pie',
        radius: ['15%', '80%'],
        center: ['40%', '60%'],
        roseType: 'area',
        avoidLabelOverlap: true,
        emphasis: {
            label: {
                show: true,
                fontSize: '30',
                fontWeight: 'bold'
                }
        },
        itemStyle: {
          borderRadius: 5
        },
        // data: [
        //   { value: 30, name: 'rose 1' },
        //   { value: 28, name: 'rose 2' },
        //   { value: 26, name: 'rose 3' },
        //   { value: 24, name: 'rose 4' },
        //   { value: 22, name: 'rose 5' },
        //   { value: 20, name: 'rose 6' },
        //   { value: 18, name: 'rose 7' },
        //   { value: 16, name: 'rose 8' }
        // ],
        data:[]
      }
    ]
  };
ec_left3.setOption(ec_left3_Option)

// var l3 = null;
// l3 = setTimeout(timel3, 10000); //開始运行
// function timel3() {
//     clearTimeout(l3); //清除定时器
//     ec_left3.clear();
//     ec_left3.setOption(ec_left3_Option);
//     l3 = setTimeout(timel3, 6000); //设定定时器，循环运行
// }

window.addEventListener("resize", function () {
    ec_left3.resize();
});